package qq2564874169.tuaotuao.fx.app;


import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import qq2564874169.tuaotuao.fx.EventArgs;

import java.lang.reflect.Method;

public class ActionEventArgs extends EventArgs {
    public final HttpServletRequest request;
    public final HttpServletResponse response;
    public final Object handler;
    public final Method method;
    public Object result;

    public ActionEventArgs(Object handler, Method method) {
        this.handler = handler;
        this.method = method;
        this.request = Utils.getRequest();
        this.response = Utils.getResponse();
    }
}
